package org.example.source;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

import java.util.Arrays;

public class CollectionSourceTest {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();


//        DataStreamSource<Integer> source = env.fromCollection(Arrays.asList(1, 22, 3));
        DataStreamSource<Integer> source = env.fromElements(1, 22, 3);

        source.print();
        env.execute();
    }
}

